﻿@{Layout = "~/Views/Shared/_Layout.cshtml";}

<h1>Showing User @ViewData.Model.ID</h1>

<table class="Info" >
    <tr>
            <th>Initials</th>
            <td style="width:50px;">
                @ViewData.Model.ID
            </td>
    </tr>
    <tr>
            <th>First Name</th>
            <td style="width:150px;">
                @ViewData.Model.FirstName
    </td>
    </tr>  
    <tr>
            <th>Last Name</th>
            <td style="width:150px;">
                @ViewData.Model.LastName
            </td> 
    </tr>
    <tr> 
            <th>Department</th>
            <td style="width:200px;">
                @ViewData.Model.Department.Name
            </td>  
    </tr>
    <tr> 
            <th>User group</th>
            <td style="width:200px;">
                @ViewData.Model.UserGroup.Name
            </td>  
    </tr>

    <tr>
            <th>Email</th>
            <td style="width:150px;">
                @ViewData.Model.Email
            </td>
    </tr>
    <tr>
            <th>Phone</th>
            <td style="width:70px;">
                @ViewData.Model.Phone
            </td>  
    </tr>
    </table>
@Html.ActionLink("Edit user", "Edit", new { Id = ViewData.Model.ID })
<br />
@Html.ActionLink("Back to list", "List")

